#ifndef _MainMenu_h_
#define _MainMenu_h_

#include "Global.h"




class MainMenu
	: public cocos2d::CCNode
	, public cocos2d::extension::CCBMemberVariableAssigner
	, public cocos2d::extension::CCBSelectorResolver
{
public:
	CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(MainMenu, create);

	MainMenu(void);
	~MainMenu(void);

	virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
	virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBCCControlSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
	virtual bool onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, cocos2d::CCString * pMemberVariableName, cocos2d::CCNode * pNode);

	bool init();
private:
	void menuCallback(CCObject* pSender);
	void onHomeClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onEquipClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onDungeonClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onShopClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onMenuClick(CCObject * pSender, CCControlEvent pCCControlEvent);
};

#endif